<footer>
    <div class="copyright"><p>The Homesick Boys - Tous droits réservés. ©</div>
    <div class="btnconnect">

        <?php
        if (!isset($_SESSION)) {
            session_start();
        }
        if (isset($_SESSION['login'])) {
            $bdd = new PDO('mysql:host=localhost;dbname=thehomesickboys', 'root', '');
            $bdd->exec("SET CHARACTER SET utf8");

            $rep = $bdd->query('SELECT HomesickBoys, Nono FROM user WHERE login="' . $_SESSION['login'] . '"');
            ?>
            Bienvenue <?php echo $_SESSION['login']; ?> !<br />
            <a href="index.php?controleur=Vues&action=AfficherDeco">Déconnexion</a>
            <a href="index.php?controleur=Vues&action=AfficherAdmin">Panneau d'administration </a>
            <?php
        } else {
            ?>
            <form action="index.php?controleur=Vues&action=AfficherAdmin" method="post">
                <input type="submit" name="connect" value="Se connecter">
            </form>
            <?php
            if (isset($erreur))
                echo '<br /><br />', $erreur;
            ?>
        </div>
        <?php
    }
    ?>
</div>
<div class="contact">Contact - Laurent Béteille : 06.89.43.54.44 <br/>Email : <a href="mailto:homesickboys@live.fr">homesickboys@live.fr</a></div></p>
</footer>
</html>